package com.dididoctor.doctor.WYY.Medicaladvice;

import android.content.Intent;

import com.dididoctor.doctor.Activity.Order.DiagnosisSuggest.DiagnosisSuggestActivity;
import com.dididoctor.doctor.Bean.Token;
import com.dididoctor.doctor.R;
import com.netease.nim.uikit.session.actions.BaseAction;

/**
 * Created by hzxuwen on 2015/6/11.
 */
public class MedicaladviceAction extends BaseAction {
    private String accId;

    public MedicaladviceAction(String accId) {
        super(R.drawable.addnotice_nol, R.string.medical_advice);
        this.accId = accId;
    }

    @Override
    public void onClick() {
        Intent intetn = new Intent(Token.getMcontext(), DiagnosisSuggestActivity.class);
        intetn.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intetn.putExtra("accId", accId);
        Token.getMcontext().startActivity(intetn);

    }
}
